import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';


<#macro trees  items>
        <#list items as item>
            {
              path:'${item.path}',
              name: '${item.name}',
              component: ${(item.menuType== '0' || item.MENU_TYPE== '1' || item.component=='DEFAULT_LAYOUT')?string("DEFAULT_LAYOUT","() => import('${item.component}')")}  ,
              <#if item.children?? && item.children?size gt 0>
              children:[
                        <@trees items=item.children />
              ]
              </#if>
            }
            <#if  item_has_next >
                ,
            </#if>
        </#list>
</#macro>
const LIST: AppRouteRecordRaw[] = [
<@trees items=params />
]
export default LIST;